package com.fl.iocaop.java8.Teststream;

import org.junit.Test;

import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * stream流创建的3哥步骤
 * 1.创建流
 * 2.中间操作
 * 3.终止流
 */
public class TestStreamApI1 {

    @Test
    public void test(){
        System.out.println(Stream.generate(() -> 55));
    }
}
